<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="js/echarts.js" ></script>
	</head>
	<body>
		<div id="product" style="width: 900px;height: 500px;" >	
		</div>
		<script>
			myCharts=echarts.init(document.getElementById("product"));
			var option={
				title:{
					text:'各种物品销量',
					subtext:'淘宝商品',
					left:'center'
				},
				tooltip:{},
				xAxis:{
					data:['鼠标','手机','被子','键盘']
				},
				yAxis:{},
				series:[
					{
						name:'销量数据',
						type:'bar',
						data:[900,700,500,1000]
					}
				]
			};
			myCharts.setOption(option);
		</script>
	</body>
</html>
